パナソニック2020 C - Sqrt Inequality
提出
code: python
a, b, c = map(int, input().split())
if (4 * a * b < pow(c, 2) + pow(a, 2) + pow(b, 2) + 2 * a * b - 2 * a * c - 2 * b * c):
print("Yes")
else:
print("No")
解答
code: python
a, b, c = map(int, input().split())
if (c - a - b <= 0):
print('No')
elif (4 * a * b < (c - a - b) ** 2):
print('Yes')
else:
print('No')
提出
code: python
a, b, c = list(map(int, input().split()))
# a + 2√ab + b < c
# 2√ab < c - a -b
# 4ab < (c-a-b)^2
if 4 * a * b < (c-a-b)**2:
print("Yes")
else:
print("No")